<?php

go(function(){

	$redis = new Swoole\Coroutine\Redis();

	$redis->setOptions([
		'connect_timeout'=>1,
		'timeout'=>3
	]);

	$redis->connect('127.0.0.1',6379);

	$value = $redis->set('chq','xxxx');

	print_r($value);
});